package com.haierCamera.customapplication.ui.user.fragment;

import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.databinding.DataBindingUtil;

import com.haierCamera.customapplication.BaseFragment;
import com.haierCamera.customapplication.R;
import com.haierCamera.customapplication.databinding.HzklFragmentPublicNotLoginBinding;
import com.haierCamera.customapplication.ui.login.HZKLLoginActivity;
import com.haierCamera.customapplication.ui.login.HZKLLoginWelcomeActivity;
import com.haierCamera.customapplication.utils.android.HttpErrorProcess;

import javax.inject.Inject;

import dagger.Lazy;

public class HZKLPublicNotFragment extends BaseFragment {

//    @Inject
//    ViewModelProvider.Factory factory;
    @Inject
    Lazy<HttpErrorProcess> httpErrorProcessLazy;

    HzklFragmentPublicNotLoginBinding binding;
    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        binding = DataBindingUtil.inflate(inflater, R.layout.hzkl_fragment_public_not_login, container, false);
        initData();
        return binding.getRoot();
    }

    private void initData() {
        binding.loginBtn.setOnClickListener(view -> startActivity(new Intent(getActivity(), HZKLLoginWelcomeActivity.class)));
    }
}
